package com.jian.java.controller;

import com.jian.java.mapper.StudentsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

/**
 * @author Jiange
 * @create 2021-05-04-14:24
 */
@Controller
@ResponseBody
public class MyController {

    @Autowired
    public StudentsMapper studentsMapper;

    @GetMapping("/all")
    public List<Map> all(){
        return studentsMapper.getAll();
    }
}
